//
//  CKVIDOOViewController.m
//  ckjntiku
//
//  Created by Eileen Vivian on 2017/11/22.
//  Copyright © 2017年 Eileen Vivian. All rights reserved.
//

#import "CKVIDOOViewController.h"

@interface CKVIDOOViewController ()<UITableViewDelegate,UITableViewDataSource>
@property (strong, nonatomic) NSArray  *myArray;
@end

@implementation CKVIDOOViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.navigationItem.title = @"金融咨讯";
        self.navigationItem.rightBarButtonItem = [UIBarButtonItem itemWithImage:@"mainCellShare" highImage:@"mainCellShareClick" target:self action:@selector(friendsClick)];
        self.myArray=@[@"基金从业考前前3天，一切皆有可能",@"百万感恩回馈，给你暖“学”暴击",@"这是一份可以让你很牛的资料礼包",@"明晚19点：基金从业节押题直播来了",@"考前4天，如何让自己更有把握"];
}

-(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{
    return  self.myArray.count;
}

-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
    UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"ID"];
    if (!cell) {
        cell = [[UITableViewCell alloc]initWithStyle:UITableViewCellStyleDefault reuseIdentifier:@"ID"];
    }
    cell.textLabel.text = self.myArray[indexPath.row];
    cell.textLabel.font = [UIFont systemFontOfSize:16];
    cell.accessoryType=UITableViewCellAccessoryNone;
    [cell setSelectionStyle:UITableViewCellSelectionStyleNone];
    return cell;
}
-(void)friendsClick{
    
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
